package com.hl.service;

import com.hl.mapper.XinlicepingMapper;
import com.hl.pojo.Psychologicalassessments;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class XinlicepingServiceImpl implements XinlicepingService{

    @Autowired
    public  XinlicepingMapper xinlicepingMapper;

    @Override
    public List<Psychologicalassessments> XinlicepingListAll() {return xinlicepingMapper.XinlicepingListAll();}

    @Override
    public List<Psychologicalassessments> xinicepingandall() {
        return xinlicepingMapper.xinicepingandall();
    }

    @Override
    public int insertxinli(Integer id,String name, String url) {
        return xinlicepingMapper.insertxinli(id,name, url);
    }

    @Override
    public int insertwenda(String name, Integer id, String answer) {
        return xinlicepingMapper.insertwenda(name, id, answer);
    }

    @Override
    public int deleteceping(Integer id) {
        return xinlicepingMapper.deleteceping(id);
    }

    @Override
    public int deletewenda(Integer id) {
        return xinlicepingMapper.deletewenda(id);
    }

    @Override
    public int updateceping(Integer id, String name) {
        return xinlicepingMapper.updateceping(id, name);
    }
}
